package com.linkelee.api.enums;


/**
 * 返回码枚举类
 *
 * @author lsl
 * @since 2019-03-25
 */

public enum ReturnCodeEnum {

    request_success("成功", "0000"),
    request_fail("失败", "0001"),
    request_timeout("超时", "0002"),
    request_Exception("发生错误", "0003"),
    request_paramException("参数校验错误", "0004"),
    request_notoken("失效的token", "0005"),
    request_noReasonException("未知错误", "9999");
    private String requestCode;
    private String requestMessage;

    ReturnCodeEnum(String requestMessage, String requestCode) {
        this.requestCode = requestCode;
        this.requestMessage = requestMessage;

    }

    public String getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(String requestCode) {
        this.requestCode = requestCode;
    }
}
